package com.xulu.romance.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @version 1.0
 * @Author xiaoxulu
 * @Date 2024/1/13 20:29
 */

@Data
@Table(name = "question")
public class Question implements Serializable {


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String questionTitle;

    private String questionContent;

    private String questionDescription;


    private String questionHover;

    private Integer questionType;

    private Integer questionTag;

    private Integer likeNumber;

    private Integer collectNumber;

    private Integer browerNumber;
    //发布人
    private Integer user;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private Integer isDelete;


}
